/**
 * helper class to display universe
 */
import java.awt.Color;

/**
 * @author Master
 * @version $Revision: 1.0 $
 */
public class UniverseScreen {
	
	/**
	 * Method toString.
	
	 * @return String */
	@Override
	public String toString() {
		return "UniverseScreen []";
	}

	/**
	 * Field screenPanel.
	 */
	public static UniverseScreenPanel ScreenPanel=null;

	/**
	 * Field gameInfo.
	 */
	public static GameInfo GameInfoIns=null;

	/**
	 * Method start.
	 * @param info GameInfo
	 */
	public static void start(GameInfo info){
		GameInfoIns=info;
		ConfigurationScreen.MyFrame.getContentPane().removeAll();
		ScreenPanel = new UniverseScreenPanel();
		ConfigurationScreen.MyFrame.getContentPane().setBackground(Color.blue);
		ConfigurationScreen.MyFrame.setContentPane(ScreenPanel);
		ConfigurationScreen.MyFrame.pack();
		ConfigurationScreen.MyFrame.setVisible(true);
		
	}

	/**
	 * Method start.
	 */
	public static void start(){
		start(GameInfoIns);
	}
}

